package com.czl.module_storehouse.bean;



import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

public class ApplicationBean implements MultiItemEntity {

    public static final int VIEW_TYPE_PARENT = 1;
    public static final int VIEW_TYPE_CHILDREN = 2;

    /**
     * 待审批
     */
    public static final int STATUS_PENDING = 0;
    /**
     * 已通过
     */
    public static final int STATUS_PASS = 1;
    /**
     * 驳回
     */
    public static final int STATUS_REJECT = 2;
    /**
     * 撤销
     */
    public static final int STATUS_UNDO = 3;
    /**
     * 已领
     */
    public static final int STATUS_RECEIVED = 4;
    /**
     * 未知状态
     */
    public static final int STATUS_UNKNOWN = -1;

    private String applicationTime;
    private int applicationType;
    private int applicationUseId;
    private int borrowCompanyId;
    private int companyId;
    private String companyName;
    private int facilityCount;
    private int goodsType;
    private int hasUseCount;
    private String note;
    private int organizationId;
    private String organizationName;
    private int sendbackCount;
    //0是待审批，1是已通过，2是被驳回，3是撤销（仓库接口）4,已领
    private int status;
    private String statusName;
    private int userId;
    private String userName;
    private String workId;
    private String workNo;
    private List<FacilityListBean> facilityList;

    public String getApplicationTime() {
        return applicationTime;
    }

    public void setApplicationTime(String applicationTime) {
        this.applicationTime = applicationTime;
    }

    public int getApplicationType() {
        return applicationType;
    }

    public void setApplicationType(int applicationType) {
        this.applicationType = applicationType;
    }

    public int getApplicationUseId() {
        return applicationUseId;
    }

    public void setApplicationUseId(int applicationUseId) {
        this.applicationUseId = applicationUseId;
    }

    public int getBorrowCompanyId() {
        return borrowCompanyId;
    }

    public void setBorrowCompanyId(int borrowCompanyId) {
        this.borrowCompanyId = borrowCompanyId;
    }

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public int getFacilityCount() {
        return facilityCount;
    }

    public void setFacilityCount(int facilityCount) {
        this.facilityCount = facilityCount;
    }

    public int getGoodsType() {
        return goodsType;
    }

    public void setGoodsType(int goodsType) {
        this.goodsType = goodsType;
    }

    public int getHasUseCount() {
        return hasUseCount;
    }

    public void setHasUseCount(int hasUseCount) {
        this.hasUseCount = hasUseCount;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public int getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(int organizationId) {
        this.organizationId = organizationId;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public int getSendbackCount() {
        return sendbackCount;
    }

    public void setSendbackCount(int sendbackCount) {
        this.sendbackCount = sendbackCount;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getWorkId() {
        return workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getWorkNo() {
        return workNo;
    }

    public String getWorkNoNotNull() {
        return workNo == null ? "" : workNo;
    }

    public void setWorkNo(String workNo) {
        this.workNo = workNo;
    }

    public List<FacilityListBean> getFacilityList() {
        return facilityList;
    }

    public void setFacilityList(List<FacilityListBean> facilityList) {
        this.facilityList = facilityList;
    }

    @Override
    public int getItemType() {
        return facilityList == null ? VIEW_TYPE_PARENT : VIEW_TYPE_CHILDREN;
    }
}
